package com.open.capacity.forum.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.open.capacity.forum.dto.ArticleDto;
import com.open.capacity.forum.model.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface ArticleDao extends BaseMapper<Article> {

    int deleteArticleCategory(@Param("articleId") Integer articleId, @Param("categoryIds") Integer[] ids);

    List<ArticleDto> selectArticleByCondition(Map<String, Object> params);
}
